Dynamic image encoding device, dynamic image decoding device, dynamic image encoding method, dynamic image decoding method, dynamic image encoding program, and dynamic image decoding program

ABSTRACT

An image encoding device including an input section inputting an input image constituting an encoding target; a reference image accumulation section accumulating a reference image; a reference image accompanying information accumulation section accumulating reference image accompanying information that accompanies the reference image; an encoding section modifying the reference image and the reference image accompanying information in accordance with the input image, generating a predictive signal for the input image, and encoding the input image; and an output section outputting, as encoded data, compressed data obtained by the encoding by the encoding section together with modification method information indicating a modification method for the reference image. Thereby, image information can be encoded/decoded more efficiently by generating an appropriate predictive signal.

TECHNICAL FIELD

The present invention relates to a moving image encoding device, amoving image decoding device, a moving image encoding method, a movingimage decoding method, a moving image encoding program, and a movingimage decoding program.

BACKGROUND ART

One moving image encoding device that exists is a moving image inversionencoding device that performs encoding after symmetrically inverting aninput image in a vertical direction, a horizontal direction, or avertical and horizontal direction frame by frame beforehand as mentionedin Non Patent Document 1. This is because input images generally havenon-uniform characteristics within the frames and, therefore, in caseswhere predictive encoding with directional dependence from the top leftto the bottom right is performed in raster scan order, the encodingefficiency can be improved by inverting the image in the direction ofhigher predictive efficiency.

The encoding device according to Non Patent Document 1 inverts the inputimage by choosing from four types of options, namely, no inversion,vertical inversion, horizontal inversion, and vertical and horizontalinversion. (a) of FIG. 1 shows the input image; (b) of FIG. 1 shows animage resulting from the non-inversion of the input image; (c) of FIG. 1shows an image obtained by inverting the input image in a verticaldirection; (d) of FIG. 1 shows an image obtained by inverting the inputimage in a horizontal direction; and (e) of FIG. 1 shows an imageobtained by inverting the input image in a vertical and horizontaldirection. Furthermore, in inter-predictive encoding which makespredictions between frames, the encoding device inverts the referenceimage which is a locally decoded image of an image which has beenpreviously encoded in the same direction as the input image and performsencoding by using the inverted reference image to generate a predictivesignal for the inverted input image constituting an encoding target.Compressed data obtained by encoding are output together with anidentifier which indicates the inversion direction of the input image.In addition, the compressed data obtained by encoding are locallydecoded, inverted in the opposite direction from the inversion directionof the input image, translated in the same direction as the input image,and saved as a reference image for the next frame and subsequent frames.(f) of FIG. 1 shows an image obtained by inverting the input image ((b)of FIG. 1) resulting from non-inversion of the input image in theopposite direction. That is, (f) and (b) of FIG. 1 show the same imageas (a) of FIG. 1. (g) of FIG. 1 shows an image which is obtained byinverting an image ((c) of FIG. 1) obtained by inverting the input imagein a vertical direction in the opposite direction. (h) of FIG. 1 showsan image which is obtained by inverting an image ((d) of FIG. 1)obtained by inverting the input image in a horizontal direction. (i) ofFIG. 1 shows an image which is obtained by inverting an image ((e) ofFIG. 1) obtained by inverting the input image in a vertical andhorizontal direction in the opposite direction.

Furthermore, in inter-predictive decoding which makes predictionsbetween frames, the decoding device which appears in Non Patent Document1 discriminates the inversion direction by obtaining an identifier thatindicates the inversion direction of the input image from code which istransmitted by the encoding device and inverts a reference image whichis a previously decoded image in the same direction as the inversiondirection of the input image. Further, the decoding device uses thecompressed data obtained from the code transmitted by the encodingdevice and the inverted reference image to decode the inverted image andthen inverts the inverted image in the opposite direction from theinversion direction of the input image to translate the image in thesame direction as the input image and generate a decoded image, andsaves the decoded image as a reference image for the next frame andsubsequent frames.

[Non Patent Document 1] Murakami et al, “Expanded encoding system thatutilizes directional dependence of a H.264/AVC Baseline Profile”, IEICE2005

DISCLOSURE OF THE INVENTION Problem to Be Solved by the Invention

The encoding device and decoding device of the prior art invert areference image in the same direction as the inversion direction of theinput image in order to generate a predictive signal. Hence, the priorart is confronted by the following problems. That is, in cases wherethere is a need for information that is to accompany the reference imagefor the purpose of generating a predictive signal, the informationaccompanying the reference image does not correspond with the invertedreference image and a correct predictive signal can therefore not begenerated. In addition, the encoding device and decoding device of theprior art change the inversion direction for each frame image but theinversion direction cannot be changed for each of the slices or each ofthe blocks which are obtained by further dividing the frame images.

The present invention was conceived in order to solve the above problemsand an object thereof is to provide, by generating a precise predictivesignal, a moving image encoding device which more efficiently encodesimage information, a moving image encoding method, a moving imageencoding program, a moving image decoding device which more efficientlydecodes encoded image information, a moving image decoding method, and amoving image decoding program.

Means for Solving the Problem

The moving image encoding device of the present invention comprisesinput means for inputting an input image is an encoding target;reference image accumulation means for accumulating a reference image;reference image accompanying information accumulation means foraccumulating reference image accompanying information which accompaniesthe reference image; encoding means for modifying the reference imageand the reference image accompanying information in accordance with theinput image, generating a predictive signal for the input image, andencoding the input image; and output means for outputting, as encodeddata, compressed data obtained by encoding by the encoding meanstogether with modification method information indicating a modificationmethod for the reference image.

A moving image encoding method of the present invention comprises aninput step in which input means inputs an input image is an encodingtarget; a reference image accumulation step in which reference imageaccumulation means accumulates a reference image; a reference imageaccompanying information accumulation step in which reference imageaccompanying information accumulation means accumulates reference imageaccompanying information which accompanies the reference image; anencoding step in which encoding means modifies the reference image andthe reference image accompanying information in accordance with theinput image, generates a predictive signal for the input image, andencodes the input image; and an output step in which output meansoutputs, as encoded data, compressed data obtained by encoding in theencoding step together with modification method information indicating amodification method for the reference image.

A moving image encoding program of the present invention causes acomputer to function as input means for inputting an input image is anencoding target; reference image accumulation means for accumulating areference image; reference image accompanying information accumulationmeans for accumulating reference image accompanying information whichaccompanies the reference image; encoding means for modifying thereference image and the reference image accompanying information inaccordance with the input image, generating a predictive signal for theinput image, and encoding the input image; and output means foroutputting, as encoded data, compressed data obtained by encoding by theencoding means together with modification method information indicatinga modification method for the reference image.

According to the present invention, because the reference imageaccumulation means accumulates a reference image and the reference imageaccompanying information accumulation means accumulates reference imageaccompanying information, it is possible to accumulate information whichcorresponds with an input image which constitutes the encoding target.Further, because the encoding means modifies the reference image andreference image accompanying information in accordance with the inputimage and the encoding means generates a predictive signal, it ispossible to modify the input image so as to be encoded easily and togenerate a predictive signal which corresponds with the modified inputimage. Accordingly, the encoding means is able to more preciselygenerate the predictive signal by using the reference image and thereference image accompanying information and is able to perform inputimage encoding more efficiently.

A moving image encoding device of the present invention comprises inputmeans for inputting an input image is an encoding target; referenceimage accumulation means for accumulating a reference image; referenceimage accompanying information accumulation means for accumulatingreference image accompanying information which accompanies the referenceimage; image modification means for modifying the input image and thereference image; reference image accompanying information modificationmeans for modifying the reference image accompanying information inaccordance with the input image and the reference image; encoding meansfor generating a predictive signal for the input image with using themodified reference image and the modified reference image accompanyinginformation, and encoding the input image; and output means foroutputting, as encoded data, compressed data obtained by encoding by theencoding means together with modification method information indicatinga modification method for the reference image.

A moving image encoding method of the present invention comprises aninput step in which input means inputs an input image is an encodingtarget; a reference image accumulation step in which reference imageaccumulation means accumulates a reference image; a reference imageaccompanying information accumulation step in which reference imageaccompanying information accumulation means accumulates reference imageaccompanying information which accompanies the reference image; an imagemodification step in which image modification means modifies the inputimage and the reference image; a reference image accompanyinginformation modification step in which reference image accompanyinginformation modification means modifies the reference image accompanyinginformation in accordance with the input image and the reference image;an encoding step in which encoding means generates a predictive signalfor the input image with using the modified reference image and themodified reference image accompanying information, and encodes the inputimage; and an output step in which output means outputs, as encodeddata, compressed data obtained by encoding in the encoding step togetherwith modification method information indicating a modification methodfor the reference image.

According to the present invention, because the reference imageaccumulation means accumulates a reference image and the reference imageaccompanying information accumulation means accumulates reference imageaccompanying information, it is possible to accumulate information whichcorresponds with an input image which constitutes the encoding target.Further, because the image modification means modifies the input imageand reference image, the reference image accompanying informationmodification means modifies the reference image accompanying informationin accordance with the input image and reference image, and the encodingmeans uses the modified reference image and the modified reference imageaccompanying information to generate a predictive signal for the inputimage, it is possible to modify the input image so as to be encodedeasily and to generate a predictive signal which corresponds with themodified input image. Accordingly, the encoding means is able to moreprecisely generate the predictive signal by using the reference imageand the reference image accompanying information and is able to performinput image encoding more efficiently.

Furthermore, the moving image encoding device of the present inventionpreferably further comprises image reverse modification means forreverse-modifying a locally decoded image which has been locally decodedby the encoding means; and reference image accompanying informationreverse modification means for reverse-modifying information whichaccompanies the locally decoded image output by the encoding means,wherein the reference image accumulation means preferably accumulatesinformation which has been reverse-modified by the image reversemodification means as the reference image; and the reference imageaccompanying information accumulation means preferably accumulatesinformation which has been reverse-modified by the reference imageaccompanying information reverse modification means as the referenceimage accompanying information.

Further, the moving image encoding method of the present inventionpreferably further comprises an image reverse modification step in whichimage reverse modification means reverse-modifies a locally decodedimage that has been locally decoded by the encoding means; and areference image accompanying information reverse modification step inwhich reference image accompanying information reverse modificationmeans reverse-modifies information which accompanies the locally decodedimage output by the encoding means, wherein information which has beenreverse-modified in the image reverse modification step is preferablyaccumulated as the reference image in the reference image accumulationstep; and information which has been reverse-modified in the referenceimage accompanying information reverse modification step is preferablyaccumulated as the reference image accompanying information in thereference image accompanying information accumulation step.

The reference image and the reference image accompanying informationwhich correspond with the input image which is input next can begenerated.

Furthermore, the reference image accompanying information of the movingimage encoding device of the present invention is preferably a motionvector of the reference image.

In addition, the reference image accompanying information of the movingimage encoding method of the present invention is also preferably amotion vector of the reference image.

A moving image decoding device of the present invention comprisesdivision means for dividing encoded data which have been input intocompressed data and modification method information; reference imageaccumulation means for accumulating a reference image; reference imageaccompanying information accumulation means for accumulating referenceimage accompanying information which accompanies the reference image;and decoding means for modifying the reference image and the referenceimage accompanying information with using the modification methodinformation, generating a predictive signal for the decoded image, anddecoding a decoded image.

A moving image decoding method of the present invention comprises adivision step in which division means divides encoded data which havebeen input into compressed data and modification method information; areference image accumulation step in which reference image accumulationmeans accumulates a reference image; a reference image accompanyinginformation accumulation step in which reference image accompanyinginformation accumulation means accumulates reference image accompanyinginformation which accompanies the reference image; and a decoding stepin which decoding means modifies the reference image and the referenceimage accompanying information with using the modification methodinformation, generates a predictive signal for the decoded image, anddecodes a decoded image.

A moving image decoding program of the present invention causes acomputer to function as division means for dividing encoded data whichhave been input into compressed data and modification methodinformation; reference image accumulation means for accumulating areference image; reference image accompanying information accumulationmeans for accumulating reference image accompanying information whichaccompanies the reference image; and decoding means for modifying thereference image and the reference image accompanying information withusing the modification method information, generating a predictivesignal for the decoded image, and decoding a decoded image.

According to the present invention, because the reference imageaccumulation means accumulates a reference image and the reference imageaccompanying information accumulation means accumulates reference imageaccompanying information which accompanies the reference image, it ispossible to accumulate information which corresponds with an input imagewhich constitutes the encoding target. Further, because the divisionmeans divides the encoded data which have been input into compresseddata and modification method information and the decoding means uses themodification method information to modify the reference image and thereference image accompanying information and generate a predictivesignal for the decoded image, the reference image and reference imageaccompanying information can be modified in accordance with thecompression data and a predictive signal which corresponds with thecompression data can be generated. Accordingly, the decoding means isable to more precisely generate the predictive signal by using thereference image and the reference image accompanying information and isable to perform compression data decoding more efficiently.

The moving image decoding device of the present invention comprisesdivision means for dividing encoded data which have been input intocompressed data and modification method information; reference imageaccumulation means for accumulating a reference image; reference imageaccompanying information accumulation means for accumulating referenceimage accompanying information which accompanies the reference image;image modification means for modifying the reference image in accordancewith the modification method information; reference image accompanyinginformation modification means for modifying the reference imageaccompanying information in accordance with the modification methodinformation; and decoding means for decoding a decoded image by usingthe modified reference image and the modified reference imageaccompanying information to generate a predictive signal for the decodedimage.

The moving image decoding method of the present comprises a divisionstep in which division means divides encoded data which have been inputinto compressed data and modification method information; a referenceimage accumulation step in which reference image accumulation meansaccumulates a reference image; a reference image accompanyinginformation accumulation step in which reference image accompanyinginformation accumulation means accumulates reference image accompanyinginformation which accompanies the reference image; an image modificationstep in which image modification means modifies the reference image inaccordance with the modification method information; a reference imageaccompanying information modification step in which reference imageaccompanying information modification means modifies the reference imageaccompanying information in accordance with the modification methodinformation; and a decoding step in which decoding means decodes adecoded image by using the modified reference image and the modifiedreference image accompanying information to generate a predictive signalfor the decoded image.

According to the present invention, because the reference imageaccumulation means accumulates a reference image and the reference imageaccompanying information accumulation means accumulates reference imageaccompanying information which accompanies the reference image, it ispossible to accumulate information which corresponds with an input imagewhich constitutes the encoding target. Further, because the divisionmeans divides the encoded data which have been input into compresseddata and modification method information, the image modification meansmodifies the reference image in accordance with the modification methodinformation, and the reference image accompanying informationmodification means modifies the reference image accompanying informationin accordance with the modification method information, and the decodingmeans uses the modified reference image and the modified reference imageaccompanying information to generate a predictive signal for the decodedimage, the reference image and reference image accompanying informationcan be modified in accordance with the compression data and a predictivesignal which corresponds with the compression data can be generated.Accordingly, the decoding means is able to more precisely generate thepredictive signal by using the reference image and the reference imageaccompanying information and is able to perform compression datadecoding more efficiently.

The moving image encoding device of the present invention furthercomprises image reverse modification means for reverse-modifying adecoded image that has been decoded by the decoding means; and referenceimage accompanying information reverse modification means forreverse-modifying information which accompanies the decoded image whichis output by the decoding means, wherein the reference imageaccumulation means preferably accumulates the information which has beenreverse-modified by the image reverse modification means as thereference image; and the reference image accompanying informationaccumulation means preferably accumulates the information which has beenreverse-modified by the reference image accompanying information reversemodification means as the reference image accompanying information.

Further, the moving image decoding method preferably further comprisesan image reverse modification step in which image reverse modificationmeans reverse-modifies the decoded image that has been decoded in thedecoding step; and a reference image accompanying information reversemodification step in which reference image accompanying informationreverse modification means reverse-modifies information whichaccompanies the decoded image that has been decoded in the decodingstep, wherein information which has been reverse-modified in the imagereverse modification step is preferably accumulated as the referenceimage in the reference image accumulation step; and information whichhas been reverse-modified in the reference image accompanyinginformation reverse modification step is preferably accumulated as thereference image accompanying information in the reference imageaccompanying information accumulation step.

The reference image and the reference image accompanying informationwhich correspond with the input image which is input next can begenerated.

The reference image accompanying information of the moving imagedecoding device of the present invention is preferably a motion vectorof the reference image.

In addition, the reference image accompanying information of the movingimage decoding method of the present invention is preferably a motionvector of the reference image.

EFFECT OF THE INVENTION

Encoding and decoding of the image information can be performed moreefficiently by generating a precise predictive signal.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 serves to illustrate a method of processing an input image of aconventional encoding device;

FIG. 2 is a constitutional view of a moving image encoding deviceaccording to a first embodiment of the present invention;

FIG. 3 is a constitutional view of an encoding section that is providedin the moving image encoding device according to the first embodiment ofthe present invention;

FIG. 4 is a modified example of an encoding section that is provided inthe moving image encoding device according to the first embodiment ofthe present invention;

FIG. 5 serves to illustrate a method of processing reference imageaccompanying information according to the first embodiment of thepresent invention;

FIG. 6 serves to illustrate inverted locally decoded image accompanyinginformation according to the first embodiment of the present invention;

FIG. 7 is a flowchart showing the moving image encoding method accordingto the first embodiment of the present invention;

FIG. 8 is a constitutional view of the moving image decoding deviceaccording to the first embodiment of the present invention;

FIG. 9 is a constitutional view of a decoding section which is providedin the moving image decoding device according to the first embodiment ofthe present invention;

FIG. 10 is a flowchart showing the moving image decoding methodaccording to the first embodiment of the present invention;

FIG. 11 is a constitutional view of a moving image encoding deviceaccording to a second embodiment of the present invention;

FIG. 12 is a flowchart showing a moving image encoding method accordingto the second embodiment of the present invention;

FIG. 13 is a constitutional view of the moving image decoding deviceaccording to the second embodiment of the present invention;

FIG. 14 is a flowchart showing a moving image decoding method accordingto the second embodiment of the present invention;

FIG. 15 is a constitutional view of a moving image encoding deviceaccording to a first modified example of the second embodiment of thepresent invention;

FIG. 16 is a flowchart showing a moving image encoding method accordingto the first modified example of the second embodiment of the presentinvention;

FIG. 17 is a constitutional view of a moving image decoding deviceaccording to the first modified example of the second embodiment of thepresent invention;

FIG. 18 is a flowchart showing a moving image decoding method accordingto the first modified example of the second embodiment of the presentinvention;

FIG. 19 serves to illustrate a case where an input image is inverted inslice units comprising block groups of a plurality of columns accordingto the first embodiment of the present invention;

FIG. 20 serves to illustrate a case where an input image is inverted inslice units comprising block groups of an optional shape according tothe first embodiment of the present invention;

FIG. 21 is a flowchart showing a method of creating inverted referenceimage accompanying information; and

FIG. 22 is a flowchart showing a method of creating image accompanyinginformation.

REFERENCE NUMERALS

20 . . . MOVING IMAGE ENCODING DEVICE, 70 . . . MOVING IMAGE DECODINGDEVICE, 201 . . . INPUT SECTION, 202 . . . REFERENCE IMAGE ACCUMULATIONSECTION, 203 . . . REFERENCE IMAGE ACCOMPANYING INFORMATION ACCUMULATIONSECTION, 204 . . . IMAGE INVERSION SECTION, 205 . . . REFERENCE IMAGEACCOMPANYING INFORMATION INVERSION SECTION, 206. ENCODING SECTION, 207 .. . IMAGE REVERSE INVERSION SECTION, 208 . . . REFERENCE IMAGEACCOMPANYING INFORMATION REVERSE INVERSION SECTION, 209 . . . OUTPUTSECTION, 210 . . . MOVING IMAGE SIGNAL, 211 . . . INPUT IMAGE, 212 . . .REFERENCE IMAGE, 213 . . . INVERTED INPUT IMAGE, 214 . . . INVERTEDREFERENCE IMAGE, 215 . . . INVERSION DIRECTION INFORMATION, 216 . . .REFERENCE IMAGE ACCOMPANYING INFORMATION, 217 . . . INVERTED REFERENCEIMAGE ACCOMPANYING INFORMATION, 218 . . . COMPRESSED DATA, 219 . . .INVERTED LOCALLY DECODED IMAGE, 220 . . . INVERTED LOCALLY DECODED IMAGEACCOMPANYING INFORMATION, 221 . . . LOCALLY DECODED IMAGE, 222 . . .LOCALLY DECODED IMAGE ACCOMPANYING INFORMATION, 223 . . . ENCODED DATA,701 . . . DIVISION SECTION, 702 . . . REFERENCE IMAGE ACCUMULATIONSECTION, 703 . . . REFERENCE IMAGE ACCOMPANYING INFORMATION ACCUMULATIONSECTION, 704 . . . IMAGE INVERSION SECTION, 705 . . . REFERENCE IMAGEACCOMPANYING INFORMATION INVERSION SECTION, 706 . . . DECODING SECTION,707 . . . IMAGE REVERSE INVERSION SECTION, 708 . . . REFERENCE IMAGEACCOMPANYING INFORMATION REVERSE INVERSION SECTION, 709 . . . ENCODEDDATA, 710 . . . COMPRESSED DATA, 711 . . . INVERSION DIRECTIONINFORMATION, 712 . . . REFERENCE IMAGE, 713 . . . INVERTED REFERENCEIMAGE, 714 . . . REFERENCE IMAGE ACCOMPANYING INFORMATION, 715 . . .INVERTED REFERENCE IMAGE ACCOMPANYING INFORMATION, 716 . . . INVERTEDDECODED IMAGE, 717 . . . INVERTED DECODED IMAGE ACCOMPANYINGINFORMATION, 718 . . . DECODED IMAGE, 719 . . . DECODED IMAGEACCOMPANYING INFORMATION.

BEST MODE FOR CARRYING OUT THE INVENTION

A moving image encoding device and a moving image decoding deviceaccording to an embodiment of the present invention will be describedwith reference to the drawings. The same reference numerals are assignedto the same elements in the drawings and repetitive descriptions areomitted.

First Embodiment

The moving image encoding device according to the present invention willnow be described by using FIG. 2.

A moving image encoding device 20 according to the present invention isconstituted comprising, as functional constituent elements, an inputsection 201 (input means), a reference image accumulation section 202(reference image accumulation means), a reference image accompanyinginformation accumulation section 203 (reference image accompanyinginformation accumulation means), an image inversion section 204 (imagemodification means), a reference image accompanying informationinversion section 205 (reference image accompanying informationmodification means), an encoding section 206 (encoding means), an imagereverse inversion section 207 (image reverse modification means), areference image accompanying information reverse inversion section 208(reference image accompanying information reverse modification means),and an output section 209 (output means).

The input section 201 divides an input moving image signal 210 intoframe images and sends the frame images to the image inversion section204 as an input image 211.

The reference image accumulation section 202 is a part that accumulatesa reference image which is a locally decoded image of an image that hasbeen previously encoded. The reference image accumulation section 202sends the reference image 212 to the image inversion section 204.

The image inversion section 204 performs inversion on the input image211 sent by the input section 201 by choosing from four types ofoptions, namely, no inversion, vertical inversion, horizontal inversion,and vertical and horizontal inversion to create an inverted input image213 which the image inversion section 204 then sends to the encodingsection 206. Furthermore, the image inversion section 204 inverts thereference image 212 sent by the reference image accumulation section 202in the same direction as the direction of inversion of the input image211 to create the inverted reference image 214 which the image inversionsection 204 then sends to the encoding section 206. Furthermore, theimage inversion section 204 sends inversion direction information 215which indicates the inversion direction of the input image 211 to thereference image accompanying information inversion section 205, theimage reverse inversion section 207, the reference image accompanyinginformation reverse inversion section 208, and the output section 209.

The reference image accompanying information accumulation section 203 isa part which accumulates reference image accompanying information whichis information that accompanies the reference image which is a locallydecoded image of a previously encoded image. The reference imageaccompanying information accumulation section 203 sends the referenceimage accompanying information 216 to the reference image accompanyinginformation inversion section 205.

The reference image accompanying information inversion section 205 usesthe inversion direction information 215 sent by the image inversionsection 204 to invert the reference image accompanying information 216sent by the reference image accompanying information accumulationsection 203 in the same direction as the inversion direction of theinput image and create the inverted reference image accompanyinginformation 217 before sending to the encoding section 206.

The encoding section 206 uses the inverted reference image 214 sent bythe image inversion section 204 and the inverted reference imageaccompanying information 217 sent by the reference image accompanyinginformation inversion section 205 to create a predictive signal of theinverted input image 213 sent by the image inversion section 204 andperforms encoding on the inverted input image. The encoding section 206sends compressed data 218 obtained by encoding the inverted input imageto the output section 209. Furthermore, the encoding section 206 sendsan inverted locally decoded image 219 which has been inverted andlocally decoded to the image reverse inversion section 207. Furthermore,the encoding section 206 sends inverted locally decoded imageaccompanying information 220 to the reference image accompanyinginformation reverse inversion section 208.

The image reverse inversion section 207 uses the inversion directioninformation 215 sent by the image inversion section 204 to invert theinverted locally decoded image 219 sent by the encoding section 206 inthe opposite direction from the inversion direction of the input imageand generate the locally decoded image 221 before sending the locallydecoded image 221 to the reference image accumulation section 202 foruse as a reference image in the next frame and subsequent frames.

The reference image accompanying information reverse inversion section208 uses the inversion direction information 215 sent by the imageinversion section 204 to invert the inverted locally decoded imageaccompanying information 220 sent by the encoding section 206 in theopposite direction from the inversion direction of the input image andgenerate locally decoded image accompanying information 222 beforesending to the reference image accompanying information accumulationsection 203 for use as reference image accompanying information in thenext frame and subsequent frames.

The output section 209 combines the inversion direction information 215sent by the image inversion section 204 and the compressed data 218 sentby the encoding section 206 and transmits the result to the outside asencoded data 223. The inversion direction information 215 is two-bitinformation for each frame such as ‘00’ in the case of no inversion,‘01’ in the case of vertical inversion, ‘10’ in the case of horizontalinversion, and ‘11’ in the case of vertical and horizontal inversion.Furthermore, various methods for indicating the inversion directionother than the inversion direction information 215 can be employed.

As an example of the reference image accompanying information 216, amotion vector that is employed when generating a reference image may becited. In this case, the reference image accompanying informationaccumulation section 203 accumulates motion vectors that are employedwhen generating a reference image. Furthermore, the reference imageaccompanying information inversion section 205 uses the inversiondirection information 215 sent by the image inversion section 204 toinvert the motion vector sent by the reference image accompanyinginformation accumulation section 203 in the same direction as theinversion direction of the input image and generate the invertedreference image accompanying information 217.

More specifically, in cases where the motion vector sent by thereference image accompanying information accumulation section 203 is(MV1 x, MV1 y), the reference image accompanying information inversionsection 205 generates the inverted motion vector which is the invertedreference image accompanying information as (MV1 x, MV1 y) when theinversion direction information 215 indicates non-inversion, generatesthe inverted motion vector which is inverted reference imageaccompanying information as (MV1 x, −MV1 y) when the inversion directioninformation 215 indicates vertical inversion, generates the invertedmotion vector which is inverted reference image accompanying informationas (−MV1 x, MV1 y) when the inversion direction information 215indicates horizontal inversion, and generates the inverted motion vectorwhich is inverted reference image accompanying information as (−MV1 x,−MV1 y) when the inversion direction information 215 indicates verticaland horizontal inversion. The position of the motion vector within theframe is also inverted according to the inversion direction in the sameway as the positions of the pixels in the input image and referenceimage.

(a) FIG. 5 shows a motion vector that is used when generating thereference image. (b) of FIG. 5 shows an inverted motion vector in thecase of non-inversion. That is, (b) of FIG. 5 shows a motion vector ofthe same orientation as that of (a) of FIG. 5. (c) of FIG. 5 shows aninverted motion vector in the case of vertical inversion. (d) of FIG. 5shows an inverted motion vector in the case of horizontal inversion. (e)of FIG. 5 shows an inverted motion vector in the case of vertical andhorizontal inversion. In addition, the reference image accompanyinginformation reverse inversion section 208 uses inversion directioninformation 215 sent by the image inversion section 204 to invert theinverted motion vector sent by the encoding section 206 in the oppositedirection from the inversion direction of the input image and generatelocally decoded image accompanying information 222. More specifically,in cases where the inverted motion vector sent by the encoding section206 is (MV2 x, MV2 y), the reference image accompanying informationreverse inversion section 208 generates the motion vector which is thelocally decoded image accompanying information as (MV2 x, MV2 y) whenthe inversion direction information 215 indicates non-inversion,generates the motion vector which is the locally decoded imageaccompanying information as (MV2 x, −MV2 y) when the inversion directioninformation 215 indicates vertical inversion, generates the motionvector which is the locally decoded image accompanying information as(−MV2 x, MV2 y) when the inversion direction information 215 indicateshorizontal inversion, and generates the motion vector which is thelocally decoded image accompanying information as (−MV2 x, −MV2 y) whenthe inversion direction information 215 indicates vertical andhorizontal inversion.

Furthermore, the position within the frame of the inverted motion vectoris also inverted in the opposite direction according to the inversiondirection in the same way as the positions of the pixels in the invertedlocally decoded image. (f) of FIG. 5 shows a motion vector obtained byinverting the inverted motion vector in the case of non-inversion ((b)of FIG. 5) in the opposite direction. That is, (f) of FIG. 5 is a motionvector of the same orientation as (a) and (b) of FIG. 5. (g) of FIG. 5shows a motion vector obtained by inverting the inverted motion vectorobtained through vertical inversion ((c) of FIG. 5) in the oppositedirection. (h) of FIG. 5 shows a motion vector obtained by inverting theinverted motion vector obtained through horizontal inversion ((d) ofFIG. 5) in the opposite direction. (i) of FIG. 5 shows a motion vectorobtained by inverting the inverted motion vector obtained throughvertical and horizontal inversion ((e) of FIG. 5) in the oppositedirection. However, the reference image accompanying information is notlimited to the above motion vectors. Various accompanying informationwhich is used when generating a reference image can be employed.

Furthermore, an example of an encoding system that is used by theencoding section 206 which can be cited is the H.264/AVC encoding system(See joint Video Team (JVT) of ISO/IEC MPEG and ITU-VCEG, “Editor'sProposed Draft Text Modifications for Joint Video Specification (ITU-TRec.H.2641|ISO/IEC 14496-10 AVC”, Geneva modifications draft 37).However, the encoding system employed is not limited to the H.264/AVCencoding system. Encoding methods of a variety of systems that performencoding by generating a predictive signal of an input image from areference image and the information accompanying the reference image canbe applied.

The encoding section 206 will now be described in more detail by usingFIG. 3.

The encoding section 206 is constituted comprising, as functionalconstituent elements, a block division section 301, a predictive signalgeneration section 302, a subtractor 303, a transformation section 304,a quantization section 305, an entropy encoding section 306, an inversequantization section 307, an inverse transformation section 308, anadder 309.

The block division section 301 generates inverted input image blocks 310by dividing the inverted input image 213 into blocks which are the unitsto undergo encoding processing and sends the inverted input image blocks310 to the subtractor 303.

The predictive signal generation section 302 generates a predictivesignal 311 for the encoding target blocks by using the invertedreference image 214 and the inverted reference image accompanyinginformation 217 and sends the predictive signal 311 to the subtractor303 and adder 309. Furthermore, the predictive signal generation section302 sends encoding information 312 which is employed in the generationof the predictive signal to the entropy encoding section 306. Inaddition, the predictive signal generation section 302 outputs theinverted locally decoded image accompanying information 220 determinedby the generation of the predictive signal.

The subtractor 303 generates a residual signal 313 by subtracting thepredictive signal 311 sent by the predictive signal generation section302 from the inverted input image blocks 310 sent by the block divisionsection 301 and sends the residual signal 313 to the transformationsection 304.

The transformation section 304 generates an orthogonal transformationcoefficient 314 by subjecting the residual signal 313 sent by thesubtractor 303 to orthogonal transformation and sends the orthogonaltransformation coefficient 314 to the quantization section 305.

The quantization section 305 generates a quantization orthogonaltransformation coefficient 315 by quantizing the orthogonaltransformation coefficient 314 sent by the transformation section 304and sends the quantization orthogonal transformation coefficient 315 tothe entropy encoding section 306 and inverse quantization section 307.

The entropy encoding section 306 performs entropy encoding by combiningthe encoding information 312 sent by the predictive signal generationsection 302 and the quantization orthogonal transformation coefficient315 sent by the quantization section 305 and generates and outputscompressed data 218.

The inverse quantization section 307 generates a local decodingorthogonal transformation coefficient 316 by performing inversequantization on the quantization orthogonal transformation coefficient315 sent by the quantization section 305 and sends the local decodingorthogonal transformation coefficient 316 to the inverse transformationsection 308.

The inverse transformation section 308 generates a local decodingresidual signal 317 by performing inverse orthogonal transformation onthe local decoding orthogonal transformation coefficient 316 sent by theinverse quantization section 307 and sends the local decoding residualsignal 317 to the adder 309.

The adder 309 adds the predictive signal 311 sent by the predictivesignal generation section 302 and the local decoding residual signal 317sent by the inverse transformation section 308 to generate and outputthe inverted locally decoded image 219.

An inverted motion vector is cited as an example of the invertedreference image accompanying information 217. In this case, thepredictive signal generation section 302 uses the inverted referenceimage 214 and the inverted motion vector which is the inverted referenceimage accompanying information 217 to generate a predictive signal foran encoded block in the same way as the B-picture temporal direct modepredictive system of an H.264/AVC encoding system. The predictive signalgeneration section 302 may also use a variety of systems other than thatof generating a predictive signal for an input image from a referenceimage and a motion vector which accompanies the reference image.

Furthermore, the encoding section 206 may also be a device such as thatshown in FIG. 4.

The difference between FIGS. 3 and 4 resides only in the fact that,whereas the predictive signal generation section 302 in FIG. 3 uses theinverted reference image 214 and the inverted reference imageaccompanying information 217 to generate a predictive signal, thepredictive signal generation section 302 in FIG. 4 uses the invertedreference image 214, the inverted reference image accompanyinginformation 217 and the inverted input image blocks 310 sent by theblock division section 301 to generate a predictive signal. Otherwise,FIGS. 3 and 4 are the same.

In the predictive signal generation section 302 shown in FIG. 4, themethod of using an inverted motion vector which is the invertedreference image accompanying information 217 to generate a predictivesignal for the encoding target block from the inverted input image block310 and the inverted reference image 214 is as follows. That is, as perFIG. 6, the predictive signal generation section 302 references theinverted motion vector in the same position as the encoding targetblock, searches on the inverted reference image for the block with thesignal pattern which is the most similar to that of the inverted inputimage block by taking the point of the inverted motion vector as thecenter of the search and thus produces a predictive signal for theencoding target block from the block signal pattern.

In addition, the predictive signal generation section 302 outputs thevector for the displacement from the position of the encoding targetblock to the block with the signal pattern which is the most similar tothe inverted input image block as the inverted locally decoded imageaccompanying information 220. In addition, from the center of the searchwhich is the point of the inverted motion vector, the vector for thedisplacement to the block with the signal pattern which is the mostsimilar to the inverted input image block is included in the encodinginformation 312 as the motion vector differential value and encoded. Thepredictive signal generation section 302 may also use a variety ofsystems other than that of using the reference image, the motion vectorwhich accompanies the reference image, and the input image to generate apredictive signal for the input image.

The operation of the moving image encoding device 20 according to thepresent invention will be described next by using FIG. 7. The operationof the moving image encoding device 20 according to the presentinvention can be executed by a program.

First, the moving image signal 210 which is input by the input section201 is divided into frame images (step S601). Thereafter, the imageinversion section 204 inverts the input image 211 sent by the inputsection 201 by choosing from four types of options, namely, noinversion, vertical inversion, horizontal inversion, and vertical andhorizontal inversion (step S602) and creates the inverted input image213 (step S603). Furthermore, the image inversion section 204 invertsthe reference image 212 sent by the reference image accumulation section202 in the same direction as the inversion direction of the input image211 to create the inverted reference image 214 (step S604). In addition,the reference image accompanying information inversion section 205 usesthe inversion direction information 215 sent by the image inversionsection 204 to invert the reference image accompanying information 216in the same direction as the inversion direction of the input image andcreate the inverted reference image accompanying information 217 (stepS605).

Thereafter, the encoding section 206 uses the inversion reference image214 sent by the image inversion section 204 and the inverted referenceimage accompanying information 217 sent by the reference imageaccompanying information inversion section 205 to create a predictivesignal for the inverted input image 213 sent by the image inversionsection 204 and encodes the inverted input image (step S606).

The image reverse inversion section 207 subsequently uses the inversiondirection information 215 sent by the image inversion section 204 toinvert the inverted locally decoded image 219 sent by the encodingsection 206 in the opposite direction from the inversion direction ofthe input image and generate the locally decoded image 221 (step S607).In addition, the reference image accompanying information reverseinversion section 208 uses the inversion direction information 215 sentby the image inversion section 204 to invert the inverted locallydecoded image accompanying information sent by the encoding section 206in the opposite direction from the inversion direction of the inputimage and generate the locally decoded image accompanying information222 (step S608).

Furthermore, the output section 209 combines the inversion directioninformation 215 sent by the image inversion section 204 and thecompressed data 218 sent by the encoding section 206 (step S609) andtransmits the result to the outside as the encoded data 223 (step S610).

The moving image decoding device according to the present invention willbe described next by using FIG. 8.

A moving image decoding device 70 according to the present invention isconstituted comprising, as functional constituent elements, a divisionsection 701 (division means), a reference image accumulation section 702(reference image accumulation means), a reference image accompanyinginformation accumulation section 703 (reference image accompanyinginformation accumulation means), an image inversion section 704 (imagemodification means), a reference image accompanying informationinversion section 705 (reference image accompanying informationmodification means), a decoding section 706 (decoding means), an imagereverse inversion section 707 (image reverse modification means), and areference image accompanying information reverse inversion section 708(reference image accompanying information reverse modification means).

The division section 701 divides the encoded data 709 that are inputafter being transmitted from the outside into compressed data 710 andinversion direction information 711. The division section 701 sends thecompressed data 710 to the decoding section 706. In addition, thedivision section 701 sends the inversion direction information 711 tothe image inversion section 704, the reference image accompanyinginformation inversion section 705, the image reverse inversion section707, and the reference image accompanying information reverse inversionsection 708. The inversion direction information 711 is two-bitinformation for each frame such as ‘00’ in the case of no inversion,‘01’ in the case of vertical inversion, ‘10’ in the case of horizontalinversion, and ‘11’ in the case of vertical and horizontal inversion.Furthermore, various methods for indicating the inversion directionother than the inversion direction information 711 can be employed.

The reference image accumulation section 702 is a part which accumulatesthe reference image which is a previously decoded image. The referenceimage accumulation section 702 sends the reference image 712 to theimage inversion section 704.

The image inversion section 704 uses the inversion direction information711 sent by the division section 701 to invert the reference image 712sent by the reference image accumulation section 702 and generate theinverted reference image 713 which the image inversion section 704 thensends to the decoding section 706.

The reference image accompanying information accumulation section 703 isa part which accumulates reference image accompanying information whichis information that accompanies the reference image which is apreviously decoded image. The reference image accompanying informationaccumulation section 703 sends the reference image accompanyinginformation 714 to the reference image accompanying informationinversion section 705.

The reference image accompanying information inversion section 705 usesthe inversion direction information 711 sent by the division section 701to invert the reference image accompanying information 714 sent by thereference image accompanying information accumulation section 703 andcreate the inverted reference image accompanying information 715 beforesending to the decoding section 706.

The decoding section 706 uses the compressed data 710 sent by thedivision section 701, the inverted reference image 713 sent by the imageinversion section 704 and the inverted reference image accompanyinginformation 715 sent by the reference image accompanying informationinversion section 705 to create a predictive signal for the decodedimage and performs decoding on the decoded image which is an inverteddecoding target. The decoding section 706 sends an inverted decodedimage 716 which has been inverted and decoded to the image reverseinversion section 707. Furthermore, the decoding section 706 sendsinverted decoded image accompanying information 717 to the referenceimage accompanying information reverse inversion section 708.

The image reverse inversion section 707 uses the inversion directioninformation 711 sent by the division section 701 to invert the inverteddecoded image 716 sent by the decoding section 706 in the oppositedirection from the inversion direction of the inversion directioninformation 711 and generate the decoded image 718 before sending thedecoded image 718 to the reference image accumulation section 702 foruse as a reference image in the next frame and subsequent frames.Furthermore, the image reverse inversion section 707 outputs the decodedimage 718 to an external device (not shown) such as a moving imagedisplay device.

The reference image accompanying information reverse inversion section708 uses the inversion direction information 711 sent by the divisionsection 701 to invert the inverted decoded image accompanyinginformation 717 sent by the decoding section 706 in the oppositedirection from the inversion direction of the inversion directioninformation and generate decoded image accompanying information 719before sending to the reference image accompanying informationaccumulation section 703 for use as reference image accompanyinginformation in the next frame and subsequent frames.

As an example of the reference image accompanying information, a motionvector that is employed when generating a reference image may be cited.In this case, the reference image accompanying information accumulationsection 703 accumulates motion vectors that are employed when generatinga reference image. Furthermore, the reference image accompanyinginformation inversion section 705 uses the inversion directioninformation 711 sent by the division section 701 to invert the motionvector sent by the reference image accompanying information accumulationsection 703 in the same direction as the inversion direction of theinversion direction information and generate the inverted referenceimage accompanying information 715.

More specifically, in cases where the motion vector sent by thereference image accompanying information accumulation section 703 is(MV3 x, MV3 y), the reference image accompanying information inversionsection 705 generates the inverted motion vector which is the invertedreference image accompanying information as (MV3 x, MV3 y) when theinversion direction information 711 indicates non-inversion, generatesthe inverted motion vector which is inverted reference imageaccompanying information as (MV3 x, −MV3 y) when the inversion directioninformation 711 indicates vertical inversion, generates the invertedmotion vector which is inverted reference image accompanying informationas (−MV3 x, MV3 y) when the inversion direction information 711indicates horizontal inversion, and generates the inverted motion vectorwhich is inverted reference image accompanying information as (−MV3 x,−MV3 y) when the inversion direction information 711 indicates verticaland horizontal inversion. The position of the motion vector within theframe is also inverted according to the inversion direction.

In addition, the reference image accompanying information reverseinversion section 708 uses inversion direction information 711 sent bythe division section 701 to invert the inverted motion vector sent bythe decoding section 706 in the opposite direction from the inversiondirection of the inversion direction information and generate decodedimage accompanying information 719. More specifically, in cases wherethe inverted motion vector sent by the decoding section 706 is (MV4 x,MV4 y), the reference image accompanying information reverse inversionsection 708 generates the motion vector which is the decoded imageaccompanying information as (MV4 x, MV4 y) when the inversion directioninformation 711 indicates non-inversion, generates the motion vectorwhich is the decoded image accompanying information as (MV4 x, −MV4 y)when the inversion direction information 711 indicates verticalinversion, generates the motion vector which is the decoded imageaccompanying information as (−MV4 x, MV4 y) when the inversion directioninformation 711 indicates horizontal inversion, and generates the motionvector which is the locally decoded image accompanying information as(−MV4 x, −MV4 y) when the inversion direction information 711 indicatesvertical and horizontal inversion. In addition, the position of themotion vector within the frame is also inverted in the oppositedirection in accordance with the inversion direction. However, thereference image accompanying information is not limited to the motionvector mentioned above and it is possible to employ a variety ofaccompanying information that is used when generating the referenceimage.

In addition, an example of a decoding system that is used by thedecoding section 706 that can be cited is the H.264/AVC decoding system.However, the decoding system employed is not limited to the H.264/AVCdecoding system. Decoding methods of a variety of systems that performdecoding by generating a predictive signal of a decoded image from areference image and the information accompanying the reference image canbe applied.

The decoding section 706 will now be described in more detail by usingFIG. 9.

The decoding section 706 is constituted comprising, as functionalconstituent elements, an entropy decoding section 801, a predictivesignal generation section 802, an inverse quantization section 803, aninverse transformation section 804, and an adder 805.

The entropy decoding section 801 decodes a quantization orthogonaltransformation coefficient 806 and encoding information 807 from theinput compressed data 710 and sends the quantization orthogonaltransformation coefficient 806 to the inverse quantization section 803and sends the encoding information 807 to the predictive signalgeneration section 802.

The predictive signal generation section 802 generates a predictivesignal 808 for the decoding target blocks by using the encodinginformation 807 sent by the entropy decoding section 801, the invertedreference image 713 and the inverted reference image accompanyinginformation 715 and sends the predictive signal 808 to the adder 805.Furthermore, the predictive signal generation section 802 outputs theinverted decoded image accompanying information 717.

The inverse quantization section 803 generates a decoding orthogonaltransformation coefficient 809 by performing inverse quantization on thequantization orthogonal transformation coefficient 806 sent by theentropy decoding section 801 and sends the decoding orthogonaltransformation coefficient 809 to the inverse transformation section804.

The inverse transformation section 804 generates a decoding residualsignal 810 by performing inverse orthogonal transformation on thedecoding orthogonal transformation coefficient 809 sent by the inversequantization section 803 and sends the decoding residual signal 810 tothe adder 805.

The adder 805 generates an inverted decoded image 716 by adding apredictive signal 808 sent by the predictive signal generation section802 and the decoding residual signal 810 sent by the inversetransformation section 804 and outputs the inverted decoded image 716.

An example of the inverted reference image accompanying information thatcan be cited is an inverted motion vector. In this case, the predictivesignal generation section 802 may use the B-picture temporal direct modepredictive system of the H.264/AVC encoding system and generate thepredictive value for the decoding target block by utilizing the invertedreference image and inverted motion vector. In addition, as per FIG. 6,the predictive signal generation section 802 may make a signal patternin a position that has moved through a vector of a motion vectordifferential value contained in the encoding information 807 from thecenter of the search on the inverted reference image the predictivevalue for the decoding target block, with the pointer of the invertedmotion vector in the same position as the decoding target block servingas the center of the search. The predictive signal generation section802 is able to use a variety of systems other than that of generating apredictive signal for a decoded image from the reference image and themotion vector which accompanies the reference image.

The operation of the moving image decoding device 70 according to thepresent invention will be described next by using FIG. 10. The operationof the moving image decoding device 70 according to the presentinvention can be executed by a program.

First, the division section 701 divides the encoded data 709 that areinput after being transmitted from the outside into compressed data 710and inversion direction information 711 (step S901) and discriminatesthe inversion direction (step S902).

Thereafter, the image inversion section 704 uses the inversion directioninformation 711 sent by the division section 701 to invert a referenceimage 712 sent by the reference image accumulation section 702 andgenerate the inverted reference image 713 (step S903). In addition, thereference image accompanying information inversion section 705 uses theinversion direction information 711 sent by the division section 701 toinvert the reference image accompanying information 714 sent by thereference image accompanying information accumulation section 703 andcreate the inversion reference image accompanying information 715 (stepS904).

Thereafter, the decoding section 706 generates a predictive signal forthe decoded image by using compressed data 710 sent by the divisionsection 701, an inverted reference image 713 sent by the image inversionsection 704, and inverted reference image accompanying information 715sent by the reference image accompanying information inversion section705, and performs decoding on the inverted decoded image (step S905).

The image reverse inversion section 707 then uses the inversiondirection information 711 sent by the division section 701 to invert theinverted decoded image 716 sent by the decoding section 706 in theopposite direction from the inversion direction of the inversiondirection information 711 and generate the decoded image 718 (stepS906). In addition, the image reverse inversion section 707 outputs thedecoded image 718 to an external device (not shown) such as a movingimage display device (step S907).

In addition, the reference image accompanying information reverseinversion section 708 uses the inversion direction information 711 sentby the division section 701 to invert the inverted decoded imageaccompanying information sent by the decoding section 706 in theopposite direction from the inversion direction of the inversiondirection information and generate the decoded image accompanyinginformation 719 (step S908).

FIG. 21 will be used next to describe a method in which the referenceimage accompanying information inversion section 205 and 705 use theinversion direction information 215 or 711 to invert the reference imageaccompanying information 216 or 714 and create inverted reference imageaccompanying information 217 or 715.

First, the reference image accompanying information inversion sectionreads the reference image accompanying information and inversiondirection information (step S2101) and judges the values of theinversion direction information (step S2102). In cases where theinversion direction information is ‘00’, the reference imageaccompanying information inversion section does not invert the referenceimage accompanying information but instead leaves the inverted referenceimage accompanying information as is (step S2103). In cases where theinversion direction information is ‘01’, the reference imageaccompanying information inversion section inverts the reference imageaccompanying information in a vertical direction to create invertedreference image accompanying information (step S2104). In cases wherethe inversion direction information is ‘10’, the reference imageaccompanying information inversion section inverts the reference imageaccompanying information in a horizontal direction to create theinverted reference image accompanying information (step S2105). In caseswhere the inversion direction information is ‘11’, the reference imageaccompanying information inversion section inverts the reference imageaccompanying information in a vertical and horizontal direction tocreate inverted reference image accompanying information (step S2106).

The inversion direction information which indicates the inversiondirection is not limited to the above value but rather a variety ofinformation identifying the inversion direction can be employed.

FIG. 22 will be used next to describe a method in which the referenceimage accompanying information reverse inversion sections 208 and 708uses the inversion direction information 215 or 711 to perform reverseinversion on the inverted locally decoded image accompanying information220 or inverted decoded image accompanying information 717 to create thelocally decoded image accompanying information 222 or decoded imageaccompanying information 719.

First, the reference image accompanying information reverse inversionsection reads (locally) decoded image accompanying information andinversion direction information (step S2201) and judges the value of theinversion direction information (step S2202). In cases where theinversion direction information is ‘00’, the reference imageaccompanying information reverse inversion section does not invert the(locally) decoded image accompanying information but instead leaves theinverted (locally) decoded image accompanying information as is (stepS2203). In cases where the inversion direction information is ‘01’, thereference image accompanying information reverse inversion sectionperforms reverse inversion on the inverted (locally) decoded imageaccompanying information in a vertical direction to create (locally)decoded image accompanying information (step S2204). In cases where theinversion direction information is ‘10’, the reference imageaccompanying information reverse inversion section performs reverseinversion on the inverted (locally) decoded image accompanyinginformation in a horizontal direction to create (locally) decoded imageaccompanying information (step S2205). In cases where the inversiondirection information is ‘11’, the reference image accompanyinginformation reverse inversion section performs reverse inversion on thetransformed (locally) decoded image accompanying information in avertical and horizontal direction to create (locally) decoded imageaccompanying information (step S2206).

The inversion direction information which indicates the inversiondirection is not limited to the above value but rather a variety ofinformation identifying the inversion direction can be employed.

According to the first embodiment, the moving image encoding device 20generates a predictive signal by inverting the reference image and theinformation accompanying the reference image in the inversion directionof the input image and is therefore able to correctly encode the inputimage. In addition, the moving image decoding device 70 is able tocorrectly decode the decoded image by generating a predictive signal byinverting the reference image and the information accompanying thereference image together with the transmitted inversion directioninformation. That is, the image encoding and decoding can be moreefficiently performed by generating a precise predictive signal.

In addition, the moving image encoding device 20 performs reversemodification on the locally decoded image that has been locally decodedand performs reverse modification on the information which accompaniesthe locally decoded image. Therefore, a reference image whichcorresponds with the input image which is input next and reference imageaccompanying information can be generated. In addition, the moving imagedecoding device 70 performs reverse modification on the decoded imagethat has been decoded and performs reverse modification on theinformation accompanying the decoded image and is therefore able togenerate a reference image which corresponds with the decoded image thatis input next as well as the reference image accompanying information.

The units for inverting the input image may be, in addition to frame byframe inversion, slice by slice or block by block inversion. FIG. 19shows an example of a case where an input image is inverted in sliceswhich comprise a block group of a plurality of columns in a frame. Aslice which is constituted by blocks 0 to 15 is inverted in a verticaland horizontal direction; a slice which is constituted by blocks 16 to31 is inverted in a vertical direction; and a slice which is constitutedby blocks 32 to 39 is inverted in a horizontal direction. In this case,an encoding device transmits inversion direction information inrespective slice units and the displacement amount in a perpendiculardirection to the position of the corresponding slice of the referenceimage. In addition, the decoding device receives the inversion directioninformation in the respective slice units and the displacement amount inthe perpendicular direction to the position of the corresponding sliceof the reference image.

In addition, FIG. 20 shows an example of a case where an input image isinverted in slices which comprise a block group of an optional shape inthe frame. A slice which comprises blocks 12 to 14, 20 to 22, and 27 to30 is inverted in a vertical direction while a slice comprising theremaining blocks is inverted in a horizontal direction. In this case,the encoding device transmits inversion direction information inrespective slice units and information indicating the position and shapeof the corresponding slice in the reference image based on the blocksignal in the slice. Furthermore, the decoding device receives inversiondirection information in respective slice units and informationindicating the position and shape of the corresponding slice in thereference image based on the block number in the slice.

In the moving image encoding device 20, the encoding section 206 mayalso have the functions of the image inversion section 204 and thereference image accompanying information inversion section 205. Inaddition, in the moving image decoding device 70, the decoding section706 may also have the functions of the image inversion section 704 andthe reference image accompanying information inversion section 705.

Second Embodiment

The moving image encoding device according to the present invention willnow be described by using FIG. 1.

The moving image encoding device 100 according to the present inventionis constituted comprising, as functional constituent elements, an inputsection 1001 (input means), a reference image accumulation section 1002(reference image accumulation means), a reference image accompanyinginformation accumulation section 1003 (reference image accompanyinginformation accumulation means), an image modification section 1004(image modification means), a reference image accompanying informationmodification section 1005 (reference image accompanying informationmodification means), an encoding section 1006 (encoding means), an imagereverse modification section 1007 (image reverse modification section),a reference image accompanying information reverse modification section1008 (reference image accompanying information reverse modificationmeans), and an output section 1009 (output means).

An input section 1001 divides an input moving image signal 1010 intoframe images and sends the frame images to the image modificationsection 1004 as an input image 1011.

A reference image accumulation section 1002 is a part that accumulates areference image which is a locally decoded image of an image that hasbeen previously encoded. The reference image accumulation section 1002sends a reference image 1012 to the image modification section 1004.

The image modification section 1004 performs inversion on the inputimage 1011 sent by the input section 1001 by making a modification suchas a rotation, an enlargement, or a reduction to create a modified inputimage 1013 which the image modification section 1004 then sends to theencoding section 1006. Furthermore, the image modification section 1004modifies the reference image 1012 sent by the reference imageaccumulation section 1002 in the same direction as the direction ofmodification of the input image 1011 to create a modified referenceimage 1014 which the image modification section 1004 then sends to theencoding section 1006. Furthermore, the image modification section 1004sends modification method information 1015 which indicates themodification method of the input image 1011 to the reference imageaccompanying information modification section 1005, the image reversemodification section 1007, the reference image accompanying informationreverse modification section 1008, and the output section 1009.

The reference image accompanying information accumulation section 1003is a part which accumulates the reference image accompanying informationwhich is information which accompanies the reference image which is alocally decoded image of a previously encoded image. The reference imageaccompanying information accumulation section 1003 sends reference imageaccompanying information 1016 to the reference image accompanyinginformation modification section 1005.

The reference image accompanying information modification section 1005uses the modification method information 1015 sent by the imagemodification section 1004 to modify the reference image accompanyinginformation 1016 sent by the reference image accompanying informationaccumulation section 1003 by means of the same method as themodification method for the input image and create modified referenceimage accompanying information 1017 which the reference imageaccompanying information modification section 1005 then sends to theencoding section 1006.

The encoding section 1006 uses the modified reference image 1014 sent bythe image modification section 1004 and the modified reference imageaccompanying information 1017 sent by the reference image accompanyinginformation modification section 1005 to generate a predictive signalfor the modified input image 1013 sent by the image modification section1004 and encodes the modified input image. The encoding section 1006sends the compressed data 1018 obtained by encoding the modified inputimage to the output section 1009. In addition, the encoding section 1006sends the modified locally decoded image 1019 that has been modified andlocally decoded to the image reverse modification section 1007.Furthermore, the encoding section 1006 sends the modified locallydecoded image accompanying information 1020 to the reference imageaccompanying information reverse modification section 1008.

The image reverse modification section 1007 uses the modification methodinformation 1015 sent by the image modification section 1004 to modifythe modified locally decoded image 1019 sent by the encoding section1006 by means of the opposite method from the method of modifying theinput image and generate a locally decoded image 1021 which the imagereverse modification section 1007 then sends to the reference imageaccumulation section 1002 for use as a reference image in the next frameand subsequent frames.

The reference image accompanying information reverse modificationsection 1008 uses the modification method information 1015 sent by theimage modification section 1004 to modify the modified locally decodedimage accompanying information sent by the encoding section 1006 bymeans of a method which is the reverse of the modification method of theinput image and generate locally decoded image accompanying information1022 before sending to the reference image accompanying informationaccumulation section 1003 for use as reference image accompanyinginformation in the next frame and subsequent frames.

The output section 1009 combines the modification method information1015 sent by the image modification section 1004 and the compressed data1018 sent by the encoding section 1006 and transmits the result to theoutside as encoded data 1023.

The modification method is not limited to rotation, enlargement, orreduction of the image and the reference image accompanying information.A variety of modification methods including the image inversion of thefirst embodiment can also be employed. In addition, the modificationmethod of the reverse method is not limited to the reverse rotation,reduction, or enlargement of the image and the reference imageaccompanying information. A variety of modification methods for removingthe effects of the modification can also be employed.

In addition, as an example of an encoding system that is used by theencoding section 1006, the H.264/AVC encoding system may be cited.However, the encoding system is not limited to the H.264/AVC encodingsystem. Encoding methods of a variety of systems that perform encodingby generating a predictive signal of an input image from a referenceimage and the information accompanying the reference image can beapplied.

The detailed description of the encoding section 1006 is the same as thedetailed description of the encoding section 206 of the firstembodiment.

The operation of the moving image encoding device 100 according to thepresent invention will be described next by using FIG. 12. The operationof the moving image encoding device 100 according to the presentinvention can be executed by a program.

First, the moving image signal 1010 input by the input section 1001 isdivided into frame images (step S1101). The image modification section1004 then modifies the input image 1011 sent by the input section 1001after determining the modification method such as rotation, enlargement,or reduction (step S1102) and creates the modification input image 1013(step S1103). Furthermore, the image modification section 1004 modifiesreference image 1012 sent by the reference image accumulation section1002 by means of the same method as the modification method for inputimage 1011 and creates the modified reference image 1014 (step S1104).Further, the reference image accompanying information modificationsection 1005 uses the modification method information 1015 sent by theimage modification section 1004 to modify the reference imageaccompanying information 1016 by means of the same method as themodification method for the input image and creates the modifiedreference image accompanying information 1017 (step S1105).

Thereafter, the encoding section 1006 uses the modified reference image1014 sent by the image modification section 1004 and the modifiedreference image accompanying information 1017 sent by the referenceimage accompanying information modification section 1005 to generate apredictive signal for the modified input image 1013 sent by the imagemodification section 1004 and encode the modified input image (stepS106).

Thereafter, the image reverse modification section 1007 uses themodification method information 1015 sent by the image modificationsection 1004 to modify the modified locally decoded image 1019 sent bythe encoding section 1006 by means of a method which is the reverse ofthe modification method of the input image and generate a locallydecoded image 1021 (step S1107). In addition, the reference imageaccompanying information reverse modification section 1008 uses themodification method information 1015 sent by the image modificationsection 1004 to modify the modified locally decoded image accompanyinginformation sent by the encoding section 1006 by means of a method whichis the reverse of the modification method of the input image andgenerate locally decoded image accompanying information 1022 (stepS1108).

In addition, the output section 1009 combines the modification methodinformation 1015 sent by the image modification section 1004 and thecompressed data 1018 sent by the encoding section 1006 (step S1109) andtransmits the result to the outside as encoded data 1023 (step S1110).

The moving image decoding device according to the present invention willbe described next by using FIG. 13.

A moving image decoding device 120 according to the present invention isconstituted comprising, as functional constituent elements, a divisionsection 1201 (division means), a reference image accumulation section1202 (reference image accumulation means), a reference imageaccompanying information accumulation section 1203 (reference imageaccompanying information accumulation means), an image modificationsection 1204 (image modification means), a reference image accompanyinginformation modification section 1205 (reference image accompanyinginformation modification means), a decoding section 1206 (decodingmeans), an image reverse modification section 1207 (image reversemodification means), and a reference image accompanying informationreverse modification section 1208 (reference image accompanyinginformation reverse modification means).

The division section 1201 divides the encoded data 1209 that are inputafter being transmitted from the outside into compressed data 1210 andmodification method information 1211. The division section 1201 sendsthe compressed data 1210 to the decoding section 1206. In addition, thedivision section 1201 sends the modification method information 1211 tothe image modification section 1204, the reference image accompanyinginformation modification section 1205, the image reverse modificationsection 1207, and the reference image accompanying information reversemodification section 1208.

The reference image accumulation section 1202 is a part that accumulatesa reference image which is a previously decoded image. The referenceimage accumulation section 1202 sends a reference image 1212 to theimage modification section 1204.

The image modification section 1204 uses the modification methodinformation 1211 sent by the division section 1201 to modify thereference image 1212 sent by the reference image accumulation section1202 and generate a modified reference image 1213 which the imagemodification section 1204 then sends to the decoding section 1206.

The reference image accompanying information accumulation section 1203is a part which accumulates the reference image accompanying informationwhich is information accompanying the reference image which is apreviously decoded image. The reference image accompanying informationaccumulation section 1203 sends reference image accompanying information1214 to the reference image accompanying information modificationsection 1205.

The reference image accompanying information modification section 1205uses the modification method information 1211 sent by the divisionsection 1201 to modify the reference image accompanying information 1214sent by the reference image accompanying information accumulationsection 1203 and create modified reference image accompanyinginformation 1215 which the reference image accompanying informationmodification section 1205 then sends to the encoding section 1206.

The decoding section 1206 uses the compressed data 1210 sent by thedivision section 1201, the modified reference image 1213 sent by theimage modification section 1204, and the modified reference imageaccompanying information 1215 sent by the reference image accompanyinginformation modification section 1205 to generate a predictive signalfor the decoded image and decode the modified decoded image. Thedecoding section 1206 sends the modified decoded image 1216 which hasbeen modified and decoded to the image reverse modification section1207. Furthermore, the decoding section 1206 sends the modified decodedimage accompanying information 1217 to the reference image accompanyinginformation reverse modification section 1208.

The image reverse modification section 1207 uses the modification methodinformation 1211 sent by the division section 1201 to modify themodified decoded image 1216 sent by the decoding section 1206 by meansof a method which is the reverse of the modification method of themodification method accompanying information 1211 and generates thedecoded image 1218 before sending to the reference image accumulationsection 1202 for use as a reference image in the next frame andsubsequent frames. Furthermore, the image reverse modification section1207 outputs the decoded image 1218 to an external device (not shown)such as a moving image display device.

The reference image accompanying information reverse modificationsection 1208 uses the modification method information 1211 sent by thedivision section 1201 to modify the modified decoded image accompanyinginformation 1217 sent by the decoding section 1206 by means of a methodwhich is the reverse of the modification method of the modificationmethod information and generate decoded image accompanying information1219 before sending to the reference image accompanying informationaccumulation section 1203 for use as reference image accompanyinginformation in the next frame and subsequent frames.

The modification method is not limited to rotation, enlargement, orreduction of the image and the reference image accompanying information.A variety of modification methods including the image inversion of thefirst embodiment can also be employed. In addition, the modificationmethod of the reverse method is not limited to the reverse rotation,reduction, or enlargement of the image and the reference imageaccompanying information. A variety of modification methods for removingthe effects of the modification can also be employed.

In addition, as an example of a decoding system that is used by thedecoding section 1206, the H.264/AVC decoding system may be cited.However, the decoding system is not limited to the H.264/AVC decodingsystem. Decoding methods of a variety of systems that perform decodingby generating a predictive signal for a decoded image from a referenceimage and the information accompanying the reference image can beapplied.

The detailed description of the decoding section 1206 is the same as thedetailed description of the decoding section 706 of the firstembodiment.

The operation of the moving image decoding device 120 according to thepresent invention will be described next by using FIG. 14. The operationof the moving image decoding device 120 according to the presentinvention can be executed by a program.

First, the division section 1201 divides the encoded data 1209 that areinput after being transmitted from the outside into the compressed data1210 and the modification method information 1211 (step S1301) anddiscriminates the modification method (step S1302).

Thereafter, the image modification section 1204 uses the modificationmethod information 1211 sent by the division section 1201 to modify areference image 1212 sent by the reference image accumulation section1202 and generate the modified reference image 1213 (step S1303). Inaddition, the reference image accompanying information modificationsection 1205 uses the modification method information 1211 sent by thedivision section 1201 to modify the reference image accompanyinginformation 1214 sent by the reference image accompanying informationaccumulation section 1203 and create the modified reference imageaccompanying information 1215 (step S1304).

Thereafter, the decoding section 1206 generates a predictive signal forthe decoded image by using the compressed data 1210 sent by the divisionsection 1201, the modified reference image 1213 sent by the imagemodification section 1204, and the modified reference image accompanyinginformation 1215 sent by the reference image accompanying informationmodification section 1205, and performs decoding on the modified decodedimage (step S1305).

The image reverse modification section 1207 then uses the modificationmethod information 1211 sent by the division section 1201 to modify themodified decoded image 1216 sent by the decoding section 1206 by meansof a method which is the reverse of the modification method of themodification method information 1211 and generate the decoded image 1218(step S1306). In addition, the image reverse modification section 1207outputs the decoded image 1218 to an external device (not shown) such asa moving image display device (step S1307).

Furthermore, the reference image accompanying information reversemodification section 1208 uses the modification method information 1211sent by the division section 1201 to modify the modified decoded imageaccompanying information sent by the decoding section 1206 by means of amethod which is the reverse of the modification method of themodification method information and generate decoded image accompanyinginformation 1219 (step S1308).

According to the second embodiment above, an input image can becorrectly encoded because a predictive signal is generated by modifyingthe reference image and information accompanying the reference image inaccordance with the modification method of the input image. Furthermore,a decoded image can be correctly decoded by generating a predictivesignal by modifying the reference image and the information accompanyingthe reference image in accordance with the transmitted modificationmethod information. In other words, the encoding and decoding of theimage can be more efficiently performed by generating an exactpredictive signal.

The units for modifying the input image may be, in addition to frame byframe modification, slice by slice or block by block modification. Inthis case, it is assumed that the encoding device transmits themodification method information in the respective units and the decodingdevice receives modification method information in the respective units.

Modified Example 1 of the Second Embodiment

A modified example 1 of the second embodiment will be described next.This modified example is described for a moving image encoding deviceand a moving image decoding device which perform encoding and decodingwith a high encoding efficiency by matching the reference image and theinformation accompanying the reference image with the direction and sizeof the input image in cases where the direction and size of the inputimage and reference image differ.

The moving image encoding device according to the present invention willnow be described by using FIG. 15.

A moving image encoding device 140 according to the present invention isconstituted comprising, as functional constituent elements, an inputsection 1401, a reference image accumulation section 1402, a referenceimage accompanying information accumulation section 1403, an imagemodification section 1404, a reference image accompanying informationmodification section 1405, an encoding section 1406, and an outputsection 1407.

The input section 1401 divides an input moving image signal 1408 intoframe images and sends the frame images to the image modificationsection 1404 and the encoding section 1406 as an input image 1409.

The reference image accumulation section 1402 is a part that accumulatesa reference image which is a locally decoded image of an image that hasbeen previously encoded. The reference image accumulation section 1402sends a reference image 1410 to the image modification section 1404.

The image modification section 1404 compares the input image 1409 sentby the input section 1401 and the reference image 1410 sent by thereference image accumulation section 1402 and creates a modifiedreference image 1411 by modifying the reference image 1410 to match theinput image 1409 and sends the modified reference image 1411 to theencoding section 1406. In addition, the image modification section 1404sends the modification method information 1412 which indicates themodification method of the reference image 1410 to the reference imageaccompanying information modification section 1405 and the outputsection 1407. As a result, the image reverse modification section of themoving image encoding device 140 of the present invention can beomitted.

The reference image accompanying information accumulation section 1403is a part which accumulates the reference image accompanying informationwhich is information accompanying the reference image which is a locallydecoded image of a previously encoded image. The reference imageaccompanying information accumulation section 1403 sends reference imageaccompanying information 1413 to the reference image accompanyinginformation modification section 1405.

The reference image accompanying information modification section 1405uses the modification method information 1412 sent by the imagemodification section 1404 to modify the reference image accompanyinginformation 1413 sent by the reference image accompanying informationaccumulation section 1403 and create modified reference imageaccompanying information 1414 which the reference image accompanyinginformation modification section 1405 then sends to the encoding section1406. The reference image accompanying information modification section1405 thus uses the modification method information 1412 sent by theimage modification section 1404 to create the modification referenceimage accompanying information 1414 and the reference image accompanyinginformation reverse modification section in the moving image encodingdevice 140 of the present invention can be omitted.

The encoding section 1406 uses the input image 1409 sent by the inputsection 1401, the modified reference image 1411 sent by the imagemodification section 1404 and the modified reference image accompanyinginformation 1414 sent by the reference image accompanying informationmodification section 1405 to generate a predictive signal for the inputimage 1409 and encodes the input image. The encoding section 1006 sendsthe compressed data 1415 obtained by encoding the input image to theoutput section 1407. In addition, the encoding section 1406 generatesthe locally decoded image 1416 that has been locally decoded and sendsthe locally decoded image 1416 that has been locally decoded to thereference image accumulation section 1402 for use as a reference imagein the next frame and subsequent frames. In addition, the encodingsection 1406 generates modified locally decoded image accompanyinginformation 1417 and sends the modified locally decoded imageaccompanying information 1417 to the reference image accompanyinginformation accumulation section 1403 for use as reference imageaccompanying information in the next frame and subsequent frames.

The output section 1407 combines the modification method information1412 sent by the image modification section 1404 and the compressed data1415 sent by the encoding section 1406 and transmits the result to theoutside as encoded data 1418.

The modification method is not limited to rotation, enlargement, orreduction of the image and the reference image accompanying information.A variety of modification methods including the image inversion of thefirst embodiment can also be employed.

In addition, as an example of an encoding system that is used by theencoding section 1406, the H.264/AVC encoding system may be cited.However, the encoding system is not limited to the H.264/AVC encodingsystem. Encoding methods of a variety of systems that perform encodingby generating a predictive signal of an input image from a referenceimage and the information accompanying the reference image can beapplied.

The detailed description of the encoding section 1406 is the same as thedetailed description of the encoding section 206 of the firstembodiment. The difference from the encoding section 206 lies in thefact that, whereas the encoding section 206 inputs an inverted inputimage 213, the encoding section 1406 inputs the input image 1409.

The operation of the moving image encoding device 140 according to thepresent invention will be described next by using FIG. 16. The operationof the moving image encoding device 140 according to the presentinvention can be executed by a program.

First, the moving image signal 1408 which is input by the input section1401 is divided into frame images (step S1501). Thereafter, the imagemodification section 1404 compares the input image 1409 sent by theinput section 1401 and the reference image 1410 sent by the referenceimage accumulation section 1402 (step S1502), determines themodification method for modifying the reference image 1410 to match theinput image 1409 (step S1503) and creates a modified reference image1411 (step S1504). In addition, the reference image accompanyinginformation modification section 1405 uses the modification methodinformation 1412 sent by the image modification section 1404 to modifythe reference image accompanying information 1413 sent by the referenceimage accompanying information accumulation section 1403 (step S1505).

Thereafter, the encoding section 1406 uses the input image 1409 sent bythe input section 1401, the modified reference image 1411 sent by theimage modification section 1404, and the modified reference imageaccompanying information 1414 sent by the reference image accompanyinginformation modification section 1405 to generate a predictive signalfor the input image 1409 and encodes the input image (step S1506).

The output section 1407 then combines the modification methodinformation 1412 sent by the image modification section 1404 and thecompressed data 1415 sent by the encoding section 1406 (step S1507) andtransmits the result to the outside as the encoded data 1418 (stepS1508).

The moving image decoding device according to the present invention willbe described next by using FIG. 17.

A moving image decoding device 150 according to the present invention isconstituted comprising, as functional constituent elements, a divisionsection 1601, a reference image accumulation section 1602, a referenceimage accompanying information accumulation section 1603, an imagemodification section 1604, a reference image accompanying informationmodification section 1605, and a decoding section 1606.

The division section 1601 divides the encoded data 1607 that are inputafter being transmitted from the outside into compressed data 1608 andmodification method information 1609. The division section 1601 sendsthe compressed data 1608 to the decoding section 1606. In addition, thedivision section 1601 sends the modification method information 1609 tothe image modification section 1604 and the reference image accompanyinginformation modification section 1605.

The reference image accumulation section 1602 is a part whichaccumulates the reference image which is a previously decoded image. Thereference image accumulation section 1602 sends the reference image 1610to the image modification section 1604.

The image modification section 1604 uses the modification methodinformation 1609 sent by the division section 1601 to modify thereference image 1610 sent by the reference image accumulation section1602 to match the input image and generate the modified reference image1611 which the image inversion section 1604 then sends to the decodingsection 1606. Thus, the image reverse modification section in the movingimage decoding device 150 of the present invention can be omitted.

The reference image accompanying information accumulation section 1603is a part which accumulates the reference image accompanying informationwhich is information accompanying the reference image which is apreviously decoded image. The reference image accompanying informationaccumulation section 1603 sends reference image accompanying information1612 to the reference image accompanying information modificationsection 1605.

The reference image accompanying information modification section 1605uses the modification method information 1609 sent by the divisionsection 1601 to modify the reference image accompanying information 1612sent by the reference image accompanying information accumulationsection 1603 and create modified reference image accompanyinginformation 1613 which the reference image accompanying informationmodification section 1605 then sends to the decoding section 1606. Thus,the reference image accompanying information modification section 1605uses the modification method information 1609 sent by the divisionsection 1601 to create the modified reference image accompanyinginformation 1613 and, therefore, the reference image accompanyinginformation reverse modification section in the moving image decodingdevice 150 of the present invention can be omitted.

The decoding section 1606 uses the compressed data 1608 sent by thedivision section 1601, the modified reference image 1611 sent by theimage modification section 1604, and the modified reference imageaccompanying information 1613 sent by the reference image accompanyinginformation modification section 1605 to generate a predictive signalfor the decoded image and decode the decoded image. The decoding section1606 sends the decoded image 1614 which has been decoded to thereference image accumulation section 1602 for use as a reference imagein the next frame and subsequent frames. Furthermore, the decodingsection 1206 outputs the decoded image 1614 which has been decoded to anexternal device (not shown) such as a moving image display device. Inaddition, the decoding section 1606 sends decoded image accompanyinginformation 1615 to the reference image accompanying informationaccumulation section 1603 for use as reference image accompanyinginformation in the next frame and subsequent frames.

The modification method is not limited to rotation, enlargement, orreduction of the image and the reference image accompanying information.A variety of modification methods including the image inversion of thefirst embodiment can also be employed.

In addition, as an example of a decoding system that is used by thedecoding section 1606, the H.264/AVC decoding system may be cited.However, the decoding system is not limited to the H.264/AVC decodingsystem. Decoding methods of a variety of systems that perform decodingby generating a predictive signal of a decoded image from a referenceimage and the information accompanying the reference image can beapplied.

The detailed description of the decoding section 1606 is the same as thedetailed description of the decoding section 706 of the firstembodiment.

The operation of the moving image decoding device 150 according to thepresent invention will be described next by using FIG. 18. The operationof the moving image decoding device 150 according to the presentinvention can be executed by a program.

First, the division section 1601 divides the encoded data 1607 that areinput after being transmitted from the outside into the compressed data1608 and modification method information 1609 (step S1701) anddiscriminates the modification method (step S1702).

Thereafter, the image modification section 1604 uses the modificationmethod information 1609 sent by the division section 1601 to modify thereference image 1610 sent by the reference image accumulation section1602 and generate the modified reference image 1611 (step S1703). Inaddition, the reference image accompanying information modificationsection 1605 uses the modification method information 1609 sent by thedivision section 1601 to modify the reference image accompanyinginformation 1612 sent by the reference image accompanying informationaccumulation section 1603 and create the modified reference imageaccompanying information 1613 (step S1704).

Thereafter, the decoding section 1606 uses the compressed data 1608 sentby the division section 1601, a modified reference image 1611 sent bythe image modification section 1604, and modified reference imageaccompanying information 1613 sent by the reference image accompanyinginformation modification section 1605 to generate a predictive signalfor the decoded image and decode the decoded image (step S1705). Inaddition, the decoding section 1606 outputs the decoded image 1614 whichhas been decoded to an external device (not shown) such as a movingimage display device (step 1706).

According to Modified example 1 of the second embodiment, the imagemodification section compares the input image and the reference imageand generates a predictive signal by modifying the reference image andthe information accompanying the reference image in accordance with theinput image. The input image can therefore be encoded highlyefficiently. In addition, a decoded image can be correctly decoded bygenerating a predictive signal by modifying the reference image and theinformation accompanying the reference image in accordance withtransmitted modification method information. That is, image encoding anddecoding can be performed more efficiently by generating an exactpredictive signal.

INDUSTRIAL APPLICABILITY

The moving image encoding device, moving image decoding device, movingimage encoding method, moving image decoding method, moving imageencoding program, and moving image decoding program of the presentinvention make it possible to encode and decode image information moreefficiently by generating an exact predictive signal.

1. A moving image encoding device, comprising: an input sectionconfigured to receive an input image as an encoding target; a referenceimage accumulation section configured to accumulate a reference image; areference image accompanying information accumulation section configuredto accumulate a motion vector accompanying the reference image; anencoding section configured to invert the reference image and the motionvector of the reference image in accordance with the input image,generate a predictive signal for the input image, and encode the inputimage; and an output section configured to output, as encoded data,compressed data obtained by encoding by the encoding section togetherwith modification method information indicating a modification methodfor the reference image.
 2. The moving image encoding device accordingto claim 1, further comprising: an image reverse inversion sectionconfigured to reverse-invert a locally decoded image that has beenlocally decoded by the encoding section; and a reference imageaccompanying information reverse inversion section configured toreverse-invert a motion vector that accompanies the locally decodedimage output by the encoding section, wherein the reference imageaccumulation section accumulates information that has beenreverse-inverted by the image reverse inversion section as the referenceimage; and the reference image accompanying information accumulationsection accumulates information that has been reverse-inverted by thereference image accompanying information reverse inversion section asthe motion vector of the reference image.
 3. A moving image encodingdevice, comprising: an input section configured to receive an inputimage as an encoding target; a reference image accumulation sectionconfigured to accumulate a reference image; a reference imageaccompanying information accumulation section configured to accumulate amotion vector that accompanies the reference image; an image inversionsection configured to invert the input image and the reference image; areference image accompanying information inversion section configured toinvert the motion vector in accordance with the input image and thereference image; an encoding section configured to generate a predictivesignal for the input image using the inverted reference image and theinverted motion vector, and encode the input image; and an outputsection configured to output, as encoded data, compressed data obtainedby encoding by the encoding section together with modification methodinformation indicating a modification method for the reference image. 4.The moving image encoding device according to claim 3, furthercomprising: an image reverse inversion section configured toreverse-invert a locally decoded image that has been locally decoded bythe encoding section; and a reference image accompanying informationreverse inversion section configured to reverse-invert a motion vectorthat accompanies the locally decoded image output by the encodingsection, wherein the reference image accumulation section accumulatesinformation that has been reverse-inverted by the image reverseinversion section as the reference image; and the reference imageaccompanying information accumulation section accumulates informationthat has been reverse-inverted by the reference image accompanyinginformation reverse inversion section as the motion vector of thereference image.
 5. A moving image decoding device, comprising: adivision section configured to divide encoded data that has been inputinto compressed data and modification method information; a referenceimage accumulation section configured to accumulate a reference image; areference image accompanying information accumulation section configuredto accumulate a motion vector accompanying the reference image; and adecoding section configured to invert the reference image and the motionvector using the modification method information, generate a predictivesignal for a decoded image, and decode the decoded image.
 6. The movingimage decoding device according to claim 5, further comprising: an imagereverse inversion section configured to reverse-invert a decoded imagethat has been decoded by the decoding section; and a reference imageaccompanying information reverse inversion section configured toreverse-invert a motion vector that accompanies the decoded image outputby the decoding section, wherein the reference image accumulationsection accumulates the information that has been reverse-inverted bythe image reverse inversion section as the reference image; and thereference image accompanying information accumulation sectionsaccumulates information that has been reverse-inverted by the referenceimage accompanying information reverse inversion section as the motionvector accompanying the reference image.
 7. A moving image decodingdevice, comprising: a division section configured to divide encoded datathat has been input into compressed data and modification methodinformation; a reference image accumulation section configured toaccumulate a reference image; a reference image accompanying informationaccumulation section configured to accumulate a motion vectoraccompanying the reference image; an image inversion section configuredto invert the reference image in accordance with the modification methodinformation; a reference image accompanying information inversionsection configured to invert the motion vector in accordance with themodification method information; and a decoding section configured togenerate a predictive signal for a decoded image using the invertedreference image and the inverted motion vector, and decode the decodedimage.
 8. The moving image decoding device according to claim 7, furthercomprising: an image reverse inversion section configured toreverse-invert a decoded image decoded by the decoding section; and areference image accompanying information reverse inversion sectionconfigured to reverse-invert a motion vector that accompanies thedecoded image output by the decoding section, wherein the referenceimage accumulation section accumulates the information that has beenreverse-inverted by the image reverse inversion section as the referenceimage; and the reference image accompanying information accumulationsection accumulates the information that has been reverse-inverted bythe reference image accompanying information reverse inversion sectionas the motion vector accompanying the reference image.
 9. A moving imageencoding method, comprising: receiving an image as an encoding target;accumulating a reference image; accumulating a motion vector thataccompanies the reference image; inverting the reference image and themotion vector in accordance with the input image; generating apredictive signal for the input image; encoding the input image; andoutputting, as encoded data, compressed data obtained by encoding in theencoding together with modification method information indicating amodification method for the reference image.
 10. A moving image encodingmethod, comprising: receiving an image as an encoding target;accumulating a reference image; accumulating a motion vector thataccompanies the reference image; inverting the input image and thereference image; inverting the motion vector in accordance with theinput image and the reference image; generating a predictive signal forthe input image using the inverted reference image and the invertedmotion vector; encoding the input image; and outputting, as encodeddata, compressed data obtained by encoding in the encoding together withmodification method information indicating a modification method for thereference image.
 11. A moving image decoding method, comprising:dividing received encoded data into compressed data and modificationmethod information; accumulating a reference image; accumulating amotion vector that accompanies the reference image; inverting thereference image and the motion vector using the modification methodinformation; generating a predictive signal for a decoded image; anddecoding the decoded image.
 12. A moving image decoding method,comprising: dividing received encoded data into compressed data andmodification method information; accumulating a reference image;accumulating a motion vector that accompanies the reference image;inverting the reference image in accordance with the modification methodinformation; inverting the motion vector in accordance with themodification method information; generating a predictive signal for adecoded image using the inverted reference image and the inverted motionvector; and decoding the decoded image.
 13. A non-transitorycomputer-readable medium including a computer program, which whenexecuted by a computer, causes the computer to perform a methodcomprising: receiving an image as an encoding target; accumulating areference image; accumulating a motion vector that accompanies thereference image; inverting the reference image and the motion vector inaccordance with the input image; generating a predictive signal for theinput image; encoding the input image; and outputting, as encoded data,compressed data obtained by the encoding together with modificationmethod information indicating a modification method for the referenceimage.
 14. A non-transitory computer-readable medium including acomputer program, which when executed by a computer, causes the computerto perform a method comprising: dividing received encoded data intocompressed data and modification method information; accumulating areference image; accumulating a motion vector that accompanies thereference image; inverting the reference image and the motion vectorusing the modification method information; generating a predictivesignal for a decoded image; and decoding the decoded image.